-- GENERATED SPELL FOR [Yarrog Baneshadow] --


function spell0_3183(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(172,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3183', 12000, 1)
end

function spell1_3183(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(348,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3183', 17000, 1)
end

function Sorts_3183(pUnit, Event)
local choix_sorts_3183 = math.random(0, 1)
if choix_sorts_3183 == 0 then
pUnit:RegisterEvent('spell0_3183', 1, 1)
end
if choix_sorts_3183 == 1 then
pUnit:RegisterEvent('spell1_3183', 1, 1)
end
end

function mob3183_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3183', math.random(1500, 3000), 1)
end

function mob3183_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3183_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3183_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3183, 1, 'mob3183_Action')
RegisterUnitEvent(3183, 2, 'mob3183_Leave')
RegisterUnitEvent(3183, 3, 'mob3183_Kill')
RegisterUnitEvent(3183, 4, 'mob3183_Die')
